package com.wx.websocket.service.impl;

import com.wx.websocket.dao.UserMapperDao;
import com.wx.websocket.entity.User;
import com.wx.websocket.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/1/2.
 */
@Service("loginService")
public class LoginServiceImpl implements LoginService {

    @Resource
    public UserMapperDao userMapperDao;

    @Override
    public List<User> getAllUsers() {
        return userMapperDao.getAllUser();
    }

    @Override
    public User userLogin(String userName, String password) {
        return userMapperDao.userLogin(userName, password);
    }
}
